package com.zy.filter;

import lombok.extern.slf4j.Slf4j;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import javax.servlet.*;
import javax.servlet.annotation.WebFilter;
import javax.servlet.http.HttpFilter;
import java.io.IOException;

/**
 * @Author CarreyZhou
 * @Date: 2024/5/6 14:47
 */
@Slf4j
@Order(6)
@WebFilter(filterName = "WebCustomerFilter3", urlPatterns = {"/cc"})
public class WebCustomerFilter3 extends HttpFilter {
    @Override
    public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException {
        log.info("WebCustomerFilter3 doFilter request");
        chain.doFilter(request, response);
        log.info("WebCustomerFilter3 doFilter response");
    }
}
